'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 激活码
 * @author sundbcn@gmail.com (sun debing)
 */

var mongoConnector = require('../libs/mongodb/mongoConnector');
/* jshint unused:false */
var cdkInfoSchema = require('../schemas/cdkInfoSchema');
var CdkInfo = mongoConnector().model('CdkInfo');
var dataApi = require('../libs/dataApi');

var cdkInfoModel = module.exports;

/**
 * 查询激活码
 */
cdkInfoModel.getCdkInfo = function (cdk, cb) {
    CdkInfo.findOne({
        cdk: cdk
    }, cb);
};
